<ul>
    <li {if $strController == "index" && $strAction == "index"}class="act"{/if}><a href="{$smarty.const.HOST_BACKEND}"><h3>Trang chủ</h3></a></li>  
    {if isset($smarty.session.category)}
    	<li {if $strController == "category"}class="act"{/if}>
        	<a href="javascript:;"><h3>Danh mục</h3></a>
		  	<ul class="level-2">
            	{foreach key=i item=item from=$arrSmarty.category}
                	<li>
                        <a href="{$smarty.const.HOST_BACKEND}category?type={$i}"><h4>{$item}</h4></a>
                    </li>
                {/foreach}                
            </ul>
        </li>
    {/if}  
    {if isset($smarty.session.slideshow) }
        <li {if $strController == "slideshow"}class="act"{/if}>
            <a href="{$smarty.const.HOST_BACKEND}slideshow"><h3>Album ảnh</h3></a> 
            <ul class="level-2">
                {foreach key=i item=item from=$arrSmarty.slideshows}
                	<li>
                        <a href="{$smarty.const.HOST_BACKEND}slideshow?type={$i}"><h4>{$item}</h4></a>
                    </li>
                {/foreach}             
            </ul>           
        </li>
    {/if}
    {if 
    	isset($smarty.session.education) ||
        isset($smarty.session.product)
    }
        <li {if $strController == "education" || $strController == "product"}class="act"{/if}>
            <a href="{$smarty.const.HOST_BACKEND}education"><h3>Trường học</h3></a> 
            <ul class="level-2">
            	{if isset($smarty.session.education)}
                    <li><a href="{$smarty.const.HOST_BACKEND}education?type={$smarty.const.EDUCATION_TYPE}"><h4>Trường chính quy</h4></a></li>
                    {if ($smarty.session.education&1<<0) > 0}
                        <li>
                            <a href="{$smarty.const.HOST_BACKEND}education/add?type={$smarty.const.EDUCATION_TYPE}"><h4>|----- Thêm mới</h4></a>
                        </li>
                    {/if}  
                    <li><a href="{$smarty.const.HOST_BACKEND}education?type={$smarty.const.EDUCATION_CENTRAL_TYPE}"><h4>Trung tâm đào tạo</h4></a></li>
                    {if ($smarty.session.education&1<<0) > 0}
                        <li>
                            <a href="{$smarty.const.HOST_BACKEND}education/add?type={$smarty.const.EDUCATION_CENTRAL_TYPE}"><h4>|----- Thêm mới</h4></a>
                        </li>
                    {/if}                
                    <li><a href="{$smarty.const.HOST_BACKEND}ecourse"><h4>Khóa học</h4></a></li>
                    {if ($smarty.session.education&1<<0) > 0}
                        <li>
                            <a href="{$smarty.const.HOST_BACKEND}ecourse/add"><h4>|----- Thêm mới</h4></a>
                        </li> 
                    {/if}
              	{/if}    
                {if isset($smarty.session.product)}    
                	<li><a href="{$smarty.const.HOST_BACKEND}product"><h4>Sản phẩm</h4></a></li>
                    {if ($smarty.session.product&1<<0) > 0}
                        <li>
                            <a href="{$smarty.const.HOST_BACKEND}product/add"><h4>|----- Thêm mới</h4></a>
                        </li>
                    {/if}      
                {/if}
            </ul>           
        </li>
    {/if}
    {if isset($smarty.session.share) ||
    	isset($smarty.session.share_manual) ||
    	isset($smarty.session.event)
    }
        <li {if $strController == "share" || $strController == "smanual" || $strController == "event"}class="act"{/if}>
            <a href="{$smarty.const.HOST_BACKEND}share"><h3>Chia sẻ</h3></a>   
            <ul class="level-2">
            	{if isset($smarty.session.share)}
                    <li><a href="{$smarty.const.HOST_BACKEND}share"><h4>Bài viết</h4></a></li>
                {/if}
                {if isset($smarty.session.share_manual)}
                    <li><a href="{$smarty.const.HOST_BACKEND}smanual"><h4>Cẩm nang</h4></a></li>
                    {if ($smarty.session.share_manual&1<<0) > 0}
                        <li>
                            <a href="{$smarty.const.HOST_BACKEND}smanual/add"><h4>|----- Thêm mới cẩm nang</h4></a>
                        </li> 
                    {/if}
                {/if}
                <li><a href="{$smarty.const.HOST_BACKEND}event"><h4>Sự kiện</h4></a></li>
                <li>
                    <a href="{$smarty.const.HOST_BACKEND}event/add"><h4>|----- Thêm mới sự kiện</h4></a>
                </li> 
            </ul>         
        </li>
    {/if}
    {if isset($smarty.session.education)
    }
    	<li {if $strController == "cmt"}class="act"{/if}>
            <a href="javascript:;"><h3>Bình luận</h3></a>   
            <ul class="level-2">
            	{if isset($smarty.session.education)}
                    <li><a href="{$smarty.const.HOST_BACKEND}cmt/education"><h4>Trường học</h4></a></li>
                {/if}
            </ul>         
        </li>
    {/if}
    {if isset($smarty.session.search)}
    	<li {if $strController == "search"}class="act"{/if}>
            <a href="javascript:;"><h3>Tìm kiếm</h3></a>
            <ul class="level-2">
            	<li><a href="{$smarty.const.HOST_BACKEND}search/map"><h4>Xuất dữ liệu file map</h4></a></li>
            </ul>
       	</li>
    {/if}
    {if $AppUI->type == 3 ||
    	($AppUI->type > 1 && $smarty.session.admin) || 
        isset($smarty.session.permission) ||
        isset($smarty.session.content) ||
        isset($smarty.session.background) ||
        isset($smarty.session.seo) 
  	}
        <li {if $strController == "admin" || $strController == "section" || $strController == "permission" || $strController == "content" || $strController == "setting" || $strController == "background"}class="act"{/if}>
            <a href="javascript:;"><h3>Hệ thống</h3></a>
            <ul class="level-2">
                {if $AppUI->type == 3}
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}admin"><h4>Danh sách BQT</h4></a>
                    </li>
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}admin/add"><h4>|----- Thêm mới BQT</h4></a>
                    </li>                   
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}section/index"><h4>Quản lý ROLE</h4></a>
                    </li>
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}section/add"><h4>|----- Thêm mới ROLE</h4></a>
                    </li>
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}permission/index"><h4>Phân quyền</h4></a>
                    </li>
                    
                {/if}  
                {if $AppUI->type > 1}
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}setting"><h4>Thiết lập biến</h4></a>
                    </li>              
                {/if}
                {if isset($smarty.session.content)}
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}content"><h4>Quản lý nội dung</h4></a>
                    </li>
                {/if}
                {if isset($smarty.session.background)}
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}background"><h4>Quản lý banner</h4></a>
                    </li>
                {/if}
                {if isset($smarty.session.seo)}
                    <li>
                        <a href="{$smarty.const.HOST_BACKEND}seo"><h4>SEO</h4></a>
                    </li>
                {/if}
            </ul>
        </li>
	{/if}
</ul>